import request from '@/utils/request'

// 查询地址管理列表
export function lockFangShi(query) {
  return request({
    url: '/lock/menu/lockFangShi',
    method: 'get',
    params: query
  })
}

// 查询开门方式饼图数据
export function lockFangShiPie(query) {
  return request({
    url: '/lock/menu/lockFangShiPie',
    method: 'get',
    params: query
  })
}

//查询设备状态
export function smartlocksStatus(query) {
  return request({
    url: '/lock/menu/smartlocksStatus',
    method: 'get',
    params: query
  })
}

//查询钥匙到期状态统计
export function keyExpiryStatus(query) {
  return request({
    url: '/lock/menu/keyExpiryStatus',
    method: 'get',
    params: query
  })
}

//查询房间统计信息
export function roomStatistics(query) {
  return request({
    url: '/lock/menu/roomStatistics',
    method: 'get',
    params: query
  })
}

//告警数量
export function gaoJinCount(query) {
  return request({
    url: '/lock/menu/gaoJinCount',
    method: 'get',
    params: query
  })
}

//男女分布-
export function sexFenBu(query) {
  return request({
    url: '/lock/menu/sexFenBu',
    method: 'get',
    params: query
  })
}

//无居住
export function wujuzhuCount(query) {
  return request({
    url: '/lock/menu/noOpenLock15Days',
    method: 'get',
    params: query
  })
}

//涉嫌转租15天无开门记录的房间
export function noOpenLock15Days(query) {
  return request({
    url: '/lock/menu/noOpenLock15Days',
    method: 'get',
    params: query
  })
}

//闲置数量
export function selectXianZhiCount(query) {
  return request({
    url: '/lock/menu/selectXianZhiCount',
    method: 'get',
    params: query
  })
}

//到期数量-
export function selectDaoQiCount(query) {
  return request({
    url: '/lock/menu/selectDaoQiCount',
    method: 'get',
    params: query
  })
}

// 导入设备电量分布API
export function deviceBatteryDistribution(query) {
  return request({
    url: '/lock/menu/deviceBatteryDistribution',
    method: 'get',
    params: query
  })
}

